var map = null;
var geocoder = null;

function initialize(name, address, suburb) {

var place = name + ', ' + suburb + ', VIC';

var found = false;

  if (GBrowserIsCompatible()) 
  {
  
	map = new GMap2(document.getElementById("map_canvas"));
	//map.setCenter(new GLatLng(37.4419, -122.1419), 13);
	geocoder = new GClientGeocoder();
	
		if (geocoder) {
		
			geocoder.getLatLng(
			  place,
			  function(point1) {
			  
					if (!point1) {
					  alert(address + ', ' + suburb + ', VIC' + " not found");
					  found = false;
					} 
					else 
					{
						found = true;
					  map.setCenter(point1, 13);
					  var marker = new GMarker(point1);
					  map.addOverlay(marker);
					  //marker.openInfoWindowHtml(address);
					}
				
			  }
			);
			

	  
	  }
	  
	 }
}